﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WebApplication1.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewData["myName"] = "吉吉";
            TempData["myAge"] = "20 yeas";
            TempData["myguoji"] = "china";
            var context = new StudentSystemEntities();
            var result = context.Student.ToList();
            ViewBag.Courses = result;
            return View();
        }

        public ActionResult About()
        {
           
            return View();
        }
        public ActionResult Save()
        {

            return View();
        }

    }
}